{include file="public/head" /}
<body>
{include file="public/menu" /}
<div class="member">
    <div class="wrap">
	{include file="public/left" /}
        <div class="notification">
            <div class="head">
                <a class="ac">消息通知</a>
                <a href="{:url('Member/affiche')}">平台公告</a>
            </div>
            <div class="bottom">
                <ul class="list">
				{volist name="dataList" id="vo"}
                    <li>
                        <a class="words{if $vo.isread neq 1} isread{/if}" style="width:100%" onclick="readNotice({$vo.id},this)">
                            <h3>{$vo.content}</h3>
                            <div class="time">{$vo.create_time}</div>
                        </a>
                    </li>
				{/volist}
                </ul>
                <div id="pages">
					{$dataList->render()}
                </div>
            </div>
        </div>
        <div class="clear"></div>
    </div>
</div>
{include file="public/foot" /}
</body>
{include file="public/load_bottom" /}
<script>
	function readNotice(id,obj){
		$.ajax({
			url:"{:url('Member/notice')}",
			type:"POST",
			dataType:"JSON",
			data:{id:id},
			success:function(msg){
				//$(obj).re();
				$(obj).removeClass('isread');
			}
		})
	}
</script>
</html>